#ifndef RECEIVEMSG_H
#define RECEIVEMSG_H

#include <QObject>
#include <QtCore/QLinkedList>
#include <QtCore/QMap>
#include "msgDlgMng.h"
class receivemsglist : public QObject
{
	Q_OBJECT

public:
	receivemsglist(QObject *parent=0);
	~receivemsglist();
Q_SIGNALS:
	void setAlert(bool);
private slots:
	void AddMsg(const QString& ip,const QString& msg);
	void postMsg();
private:
	void addToList( const QString& ip,const QString& msg );

private:
	QLinkedList<QString> _ip;
	typedef QMap<QString,QString> MsgMap;
	MsgMap _msgmap;
};

#endif // RECEIVEMSG_H
